package com.qf.controller;

import com.qf.entity.ClassRoom;
import com.qf.entity.Stu;
import com.qf.entity.StuVO;
import com.qf.service.StuClassService;
import com.qf.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Qiao
 * @date 2025/8/16
 * @desc
 */
@RestController
public class StuClassController {
    @Autowired
    private StuClassService stuClassService;


    @GetMapping("/class")
    public R findStuAndClassRoomAll(){
        List<StuVO> vo = stuClassService.findStuAndClassRoomAll();
        return R.success(vo);
    }
}
